package com.yanh.merchant.service;

import com.yanh.common.exception.BusinessException;
import com.yanh.merchant.domain.App;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yanh.merchant.dto.AppDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yanh
 * @since 2024-06-01
 */
public interface IAppService extends IService<App> {

    /**
     * 创建应用
     * @param appDTO 应用信息
     * @return 创建成功的应用信息
     * @throws BusinessException
     */
    boolean createApp(AppDTO appDTO) throws BusinessException;

    List<AppDTO> queryAppByMerchant(Long merchantId) throws BusinessException;

    AppDTO getAppById(String appId) throws BusinessException;


    Boolean queryAppInMerchant(String appId, Long merchantId);
}
